﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Entity
{
    [Table("EmployeeTaskMapping")]


    public class EmployeeTaskMapping : Entity<int>
    {
        /// <summary>
        /// 表id
        /// </summary>
        [Key]
        public override int Id { get; set; }
        /// <summary>
        /// Employee表的id 员工
        /// </summary>
        [Required]
        public int EmployeeId { get; set; }
        /// <summary>
        /// task 表的 id 班次
        /// </summary>
        [Required]
        public int TaskId { get; set; }
        /// <summary>
        /// 排班时间
        /// </summary>
        [Required]
        public DateTime WorkTime { get; set; }
        public EmployeeTaskMapping()
        {
        }
    }
}
